/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.chl.da.pagebeans;

import edu.chl.da.ejb.core.Airport;
import edu.chl.da.ejb.ctrl.IManageAirport;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Erik
 */
@ManagedBean(name="ManageAirportModel")
@RequestScoped
public class ManageAirportModel {

    @EJB
    IManageAirport ima;

    /** Creates a new instance of ManageAirportModel */
    public ManageAirportModel() {

    }

    public List<Airport> listAllAirports(){
        return ima.getAllAirports();
    }

}
